
#ifndef __MBM_CAMERA_ADAPTER_H__
#define __MBM_CAMERA_ADAPTER_H__

// watson chen add
enum
{
	CAM_OPEN_CAMERA,
	CAM_CLOSE_CAMERA,
	CAM_START_PREVIEW,
	CAM_STOP_PREVIEW,
	CAM_GET_IMAGE,
	CAM_CONVERT_IMAGE,
};


typedef struct
{
    UInt32 capture_format;  //yuv422
    UInt32 capture_buf;     //buffer pointer after trunk(alignment)
    UInt32 capture_len;
    UInt16 capture_width;
    UInt16 capture_height;

}t_mbm_camera_capture_param;

typedef struct
{
    UInt32 y_addr;
    UInt32 uv_addr;

}t_yuv_data;

 
#ifdef __cplusplus
extern "C"
{
#endif


Int32 mbm_camera_open(void);
UInt32 mbm_camera_capture(t_yuv_data* data, const t_mbm_camera_capture_param* param);
Int32 mbm_camera_close(void);


#ifdef __cplusplus
}
#endif


#endif/* __MBM_CAMERA_ADAPTER_H__ */

